import * as types from "@/redux/mutation-types";
import { ThemeConfigProp } from "@/redux/interface/index";

// * setAssemblySize
export const setAssemblySize = (data: string) => ({
	type: types.SET_ASSEMBLY_SIZE,
	payload: data
});

// * setLanguage
export const setLanguage = (data: string) => ({
	type: types.SET_LANGUAGE,
	payload: data
});

// * setThemeConfig
export const setThemeConfig = (data: ThemeConfigProp) => ({
	type: types.SET_THEME_CONFIG,
	payload: data
});

// * setBreadcrumbList
export const setBreadcrumbList = (data: { [propName: string]: any }) => ({
	type: types.SET_BREADCRUMB_LIST,
	payload: data
});

// * updateCollapse
export const updateCollapse = (data: boolean) => ({
	type: types.UPDATE_COLLAPSE,
	payload: data
});

// * setTabsList
export const setTabsList = (data: Menu.MenuOptions[]) => ({
	type: types.SET_TABS_LIST,
	payload: data
});

// * setTabsActive
export const setTabsActive = (data: string) => ({
	type: types.SET_TABS_ACTIVE,
	payload: data
});
